package com.bafa.front.admin;

import com.bafa.dbcache.LeagueCache;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import com.bafa.exceptions.ErrorException;
import com.bafa.front.DaddyServlet;
import com.bafa.objects.Match;
import com.bafa.objects.PageBean;
import com.bafa.services.RetrieveServices;

public class DisplayAddResultServlet extends AdminServlet {

	@Override
	public void doAdminEvent(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, ErrorException {
		HttpSession session = request.getSession();
		
			
			String matchId = request.getParameter("MatchId");
			Match match = RetrieveServices.getMatch(new Integer(matchId).intValue());
			
			request.setAttribute("MATCH",match);
	    pageBean = (PageBean)LeagueCache.getPages().get("adminaddresult");
		
		
	}
}
